package com.teach.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.teach.entity.TbDraw;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @Entity com.teach.entity.TbDraw
 */
@Mapper
public interface TbDrawMapper extends BaseMapper<TbDraw> {

    @Select(value = "SELECT * FROM tb_draw WHERE cid=#{id} AND uid=#{uid}")
    TbDraw selectId(@Param("id") Integer id, @Param("uid") Integer uid);

    @Select(value = "SELECT * FROM tb_draw WHERE id=#{did}")
    TbDraw selectByDid(@Param("did") Integer did);
}




